Fix the startup behaviour when the tdb file exists. We were attempting to
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 7 Dec 2005 15:44:38 +0000 (15:44 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 7 Dec 2005 15:44:38 +0000 (15:44 +0000)
commitafa150ca7ca6170ff4a26e0faa6e0f3beccd3f5e
tree30ff19863d3a4fe3ca59f8be660f7f3ac6330db6
parenta16c06e77e7bca689d800489324208a9fb71bde3
Fix the startup behaviour when the tdb file exists.  We were attempting to
remove and recreate the /local directory, but the manual_node call only works
if the tdb is empty -- we must use create_node, otherwise the store is
corrupted.

It's not clear to me that the other manual_node calls are safe, but I have only
made this smaller change for the sake of stability.  These other calls should
be reviewed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xenstore/xenstored_core.c